package com.atguigu.zy.interview.jvm.reference;

/**
 * @author Jungle
 * @create 2022-09-04 14:16
 * 强引用 强引用死都不回收
 */
public class StrongReferenceDemo {
    public static void main(String[] args) {
        Object obj1 = new Object();
        Object obj2 = obj1;
        obj1 = null;
       System.gc();
        System.out.println(obj2);

    }
}
